<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<!-- A comment is written like this -->
<!-- please make sure below is correct: same as first h1 tag in main part -->
<title>MGE2GP - Converts MPSGE Models to GEMPACK</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<!-- next two are optional -->
<!-- keywords, separated by commas, could be used by search engines -->
<meta name="keywords" content="HTML, CoPS standards">
<meta name="author" content="Mark Horridge">
<!-- link below controls the appearance of the document -->
<!-- change it to non-existent filename to see browser default styles -->
<link rel="StyleSheet" href="cops1.css" type="text/css">
</head>
<body>
<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
<!-- Put page-specific stuff below -->
<!-- First line should be probably an <h1>My Page Title<\h1> tag -->
<!--   and you should ensure that "My Page Title" also appears -->
<!--   in the <Title> tag at the top of the page -->
<h1>MGE2GP - Converts MPSGE Models to GEMPACK</h1>
<p>
<p>MPSGE is a non-algebraic language for the formulation of applied 
general equilibrium models. MPSGE representations of models are very compact. One
of the aims of MPSGE is to allow rapid prototyping of models.
The MPSGE language was developed by Tom Rutherford. 
MPSGE stands for Mathematical Programming System for General Equilibrium modeling.</p>

<p>MGE2GP is a program which you can use to convert MPSGE models to GEMPACK. You can
write down your model in MPSGE format, then run the program MGE2GP to
convert your model to GEMPACK TAB and Command files. You can then
carry out simulations with your model using the GEMPACK windows programs.</p>

<p>The program MGE2GP and the syntax of MPSGE models are documented in the
paper:</p>
<p><i>"Solving MPSGE Models Using GEMPACK"</i></p>
<p> by Laurent Cretegny, Mark Horridge, Ken Pearson and Thomas Rutherford.</p>

<p>This paper is a detailed user guide for this program MGE2GP.
You can download this paper (see below).</p>

<h3>Current Version of MGE2GP</h3>
<p>This is <b>Version 1.1 (July 2004)</b>.</p>
<p>The software and example models available from this site were last updated
on 14 July 2004.</p>

<h3>Changes Since Last Version</h3>
<p>Since version 1 (June 2004),
<ul>
<li>the <a href="minimal.htm">MINIMAL</a> model has been added as an MGE model.</li>
<li>the updated data is only produced when appropriate.</li>
<li>all of the 11 example models produce valid updated data (except for 
TWOBYTWO which cannot because of numbers in the MGE file).</li>
<li>simulations starting from the updated data and reversing
the shocks from the standard simulations with the relevant 10 
example models have been added. These are good checks of the models
and of their updated data.</li>
<li>a number of bugs and known limitations have been fixed.</li>
</ul>

<h3>Download the program MGE2GP</h3>
<p><a href="http://www.monash.edu.au/policy/ftp/gpmge2gp/mge2gp.zip">Download the
file MGE2GP.ZIP (340K)</a> and put it into the directory in which you have installed
GEMPACK (or into some other directory on your PATH). Unzip the program MGE2GP.EXE from
this zip file. This is the program you use to convert MPSGE models in .MGE files
to GEMPACK.</p>

<h3>Download the documentation for MGE2GP</h3>
<p><a href="http://www.monash.edu.au/policy/ftp/gpmge2gp/mge2gp.pdf">Download the
PDF file MGE2GP.PDF (510K)</a> and put it into a suitable new directory - perhaps C:\MGE2GP .</p>
<p>This document 
<ul>
<li>introduces and documents the MPSGE syntax. [No prior knowledge of MPSGE is assumed.]</li>
<li>provides details about the various example models supplied</li>
<li>gives detailed hands-on instructions for using the program MGE2GP.</li>
<li>introduces GEMPACK and provides detailed hands-on instructions for solving 
the models using GEMPACK. [No prior knowledge of GEMPACK is assumed.]</li>
</ul> 
<p>To read this document you will need to <a href=
"http://www.adobe.com/prodindex/acrobat/readstep.html">download the Adobe Acrobat
Reader</a> (which is available at no cost) if you do not already have it.</p>

<h3>Download the example models</h3>
<p><a href="http://www.monash.edu.au/policy/ftp/gpmge2gp/gpmgeex1.zip">Download the
file GPMGEEX1.ZIP (25K)</a> and put it into the directory in which you put the
MGE2GP documentation. Unzip the different files from this zip file. You will see various
.MGE, .HAR and .CMF files. [For example, SJMGE.MGE, SJMGE.HAR and SJMGE.CMF for the
SJMGE model.] See sections 2,4 and 5 of the associated documentation for details about
these models.</p>

<h3>Download the files for the MINIMAL model</h3>
<p><a href="http://www.monash.edu.au/policy/ftp/gpmge2gp/minlmge.zip">Download the
file MINLMGE.ZIP (35K)</a> and 
<a href="http://www.monash.edu.au/policy/ftp/gpmge2gp/minlmge.zip">download the
file MINIMAL-MGE.ZIP (10K)</a>.
These are the files for the MINIMAL model (see section 6.1 of the associated documentation).
Put these files into the directory in which you put the MGE2GP documentation.
Unzip the different files from this zip file. You will see various
.MGE, .HAR, .TAB and .CMF files.
You can work through section 6.1 of the associated documentation with these files.</p>

<h3>Download GAMS versions of the example models</h3>
<p><a href="http://www.monash.edu.au/policy/ftp/gpmge2gp/gpmgegm1.zip">Download the
file GPMGEGM1.ZIP (25K)</a> and put it into the directory in which you put the
MGE2GP documentation and example models. 
Unzip the different files from this zip file. You will see various
.GMS and .GDX files. [For example, SJMGE.GMS and SJMGE.GDX for the
SJMGE model.] If you have GAMS available, you can use these files to
solve the example models via GAMS/MPSGE. [For example, use the
command "gams sjmge" to solve the SJMGE model.]</p>
<p>Note that the .GDX files contain the data for these models in GDX format. The .HAR files
for the example models (as supplied in GPMGEEX1.ZIP - see above) were produced
using the tool <a href="gp-gams.htm">GDX2HAR</a> from these .GDX files.</p>

<h3>Which versions of GEMPACK can you use with MGE2GP?</h3>
<p>You need Release 8, or later, of GEMPACK.</p>
<p>You can use either a Source-Code Version, an Executable-Image Version
or the Demonstration Version of GEMPACK.</p>
<p>If you don't have any version of GEMPACK, you can download and install 
the <a href="gpdemo.htm">Demonstration Version</a> of GEMPACK. With this version you can solve
several of the example models supplied with MGE2GP. [Section 1.2 of the MGE2GP documentation (see above)
gives details.]</p>
<p>If you have a Source-Code Version of GEMPACK you will probably need to install
bug fixes before working with the TAB files produced by MGE2GP. See the "Fixes" section
later in this page.</p>
<p>If you have an Executable-Image Version of GEMPACK and you want to
work with MGE2GP, you will probably need to obtain a new version of TABLO.EXE. Please 
contact <a href="mailto:Ken.Pearson@BusEco.monash.edu.au">Ken Pearson</a> about this.</p>
<p>The program MGE2GP supplied on this web page only runs on Windows PCs. If you
want to use it on other machines (eg Unix machines) with GEMPACK, please
contact <a href="mailto:Ken.Pearson@BusEco.monash.edu.au">Ken Pearson</a>.</p>

<h3>Fixes for the TABLO "NOT" Bug</h3>
<p>If you have a Source-code Version or an Executable-Image Version
of GEMPACK which is prior to Release 8.0-005 (June 2004), you will need to install 
TABLO bug fixes, as described below, 
in order to successfully work with the TABLO Input files produced by the program
MGE2GP.</p>
<ul>
<li>If you have any version of Release 8.0 Source-Code GEMPACK prior to
Release 8.0-005 (June 2004), you should install the 
<a href="gp80bug4.htm">fixes for the TABLO "NOT" bug</a>.
<li>If you have an Executable-Image Version of Release 8.0 prior to 
Release 8.0-005 (June 2004), please
contact <a href="mailto:Ken.Pearson@BusEco.monash.edu.au">Ken Pearson</a>.</li>
<li>The fixes for the TABLO "NOT" bug have been included in the version of TABLO supplied
with the Demonstration Version of GEMPACK since early June 2004. If you are working with the
Demonstration Version of GEMPACK, make sure that you have a version downloaded since June 2004.</li>
</ul>
<p>
<p>Go back to
<br>
<a href="gempack.htm">GEMPACK Home Page</a>
<br>
<a href="index.htm">CoPS Home Page</a>
<br>
 <!-- END of page-specific stuff -->
<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
<!-- next 5 lines seem like comments but are a server-side include: don't touch -->
</p>
<p><small>
Last modified 14 July 2004
</small></p>
<!-- Use footer FOOTERGP.JS in GEMPACK files -->
<script type="text/javascript" src="footergp.js">
</script>
</body>
</html>
